<template>
	<div>
		News组件--{{ num }}

		<br />
		<br />
		{{ myList }}
	</div>
</template>

<script lang="ts">
	import { defineComponent } from "vue";
	import { mapState } from "vuex";
	export default defineComponent({
		data() {
			return {};
		},
		methods: {},
		computed: {
			...mapState({
				num: (state : any) => state.count,
				myList: (state : any) => state.list,
			}),
		},
		mounted() { },
	});
</script>

<style lang="scss">
	//cnpm install -D sass-loader node-sass
</style>